package com.offcn.dao;

import com.offcn.pojo.CourseUser;
import com.offcn.pojo.User;
import com.offcn.util.PageUtil;

import java.util.List;

public interface UserDao {
    User login(String username,String password);

    int addUser(User map);

    Integer queryCount(String search);

    List<User> queryUserByPage(PageUtil<User> pageUtil, String search);

    int deleteUserByIds(String ids);

    int updateUser(User user);

    List<Integer> queryAll(String search);


    User queryUserById(Integer uid);

    User checkPhone(String phone);

    int register(String name, String phone, String pwd);

    User loginByPhone(String phone, String pwd);
}
